﻿using MPic.Business.Models;
using MPic.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MPic.Controllers
{
    [UserAuthorize]
    public class BaseController : Controller
    {
        public JsonResult Result(object obj)
        {
            return Json(obj, JsonRequestBehavior.AllowGet);
        }

        private ShowResultModel _resultModel;

        protected ShowResultModel srm
        {
            get
            {
                if (_resultModel == null)
                {
                    _resultModel = new ShowResultModel();
                }
                return _resultModel;
            }
        }
    }
}